package com.TTBook.core.book.model;

import java.io.Serializable;

public class BookStorage implements Serializable {
    private String bookid;

    private String addressid;

    private Integer storage;

    private Integer frozenStorage;

    private static final long serialVersionUID = 1L;

    public String getBookid() {
        return bookid;
    }

    public void setBookid(String bookid) {
        this.bookid = bookid == null ? null : bookid.trim();
    }

    public String getAddressid() {
        return addressid;
    }

    public void setAddressid(String addressid) {
        this.addressid = addressid == null ? null : addressid.trim();
    }

    public Integer getStorage() {
        return storage;
    }

    public void setStorage(Integer storage) {
        this.storage = storage;
    }

    public Integer getFrozenStorage() {
        return frozenStorage;
    }

    public void setFrozenStorage(Integer frozenStorage) {
        this.frozenStorage = frozenStorage;
    }

    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (!(that instanceof BookStorage)) {
            return false;
        }
        BookStorage other = (BookStorage) that;
        return this.getBookid() == null ? other == null : this.getBookid().equals(other.getBookid())
            && this.getAddressid() == null ? other == null : this.getAddressid().equals(other.getAddressid())
            && this.getStorage() == null ? other == null : this.getStorage().equals(other.getStorage())
            && this.getFrozenStorage() == null ? other == null : this.getFrozenStorage().equals(other.getFrozenStorage());
    }

    public int hashCode() {
        int hash = 23;
        if (getBookid() != null) {
            hash *= getBookid().hashCode();
        }
        if (getAddressid() != null) {
            hash *= getAddressid().hashCode();
        }
        if (getStorage() != null) {
            hash *= getStorage().hashCode();
        }
        if (getFrozenStorage() != null) {
            hash *= getFrozenStorage().hashCode();
        }
        return hash;
    }
}